package com.JZ.QM.service;

import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.entity.UserInfoEntity;
import org.json.JSONException;

import java.util.Map;

/**
 * 
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 */
public interface UserInfoService extends IService<UserInfoEntity> {

    PageUtils queryPage(Map<String, Object> params) throws Exception;
    /**
     * 发送验证码
     * @param phoneNumber
     * @param code
     * @param identification
     * @return
     * @throws ClientException
     */
    boolean sendCode(String phoneNumber, String code, Integer identification) throws ClientException;

    /**
     * 验证用户账号是否已经存在
     * @param phoneNumber
     * @return
     */
    boolean validUserAccount(String phoneNumber);

    /**
     * 获取需要的cookie信息
     * @param phoneNumber
     * @return
     */
    Map<String, String> getCookie(String phoneNumber);

    /**
     * 注册保存操作
     * @param phoneNumber
     * @return
     */
    boolean register(String phoneNumber);

}

